package com.tourism.product.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 产品品论对象 product_review
 * 
 * @author silenceEcho
 * @date 2025-04-13
 */
public class ProductReview extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long reviewId;

    /** 产品id */
    @Excel(name = "产品id")
    private Long productId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String reviewText;

    /** 评分 */
    @Excel(name = "评分")
    private Long rating;

    /** 评论日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reviewDate;

    public void setReviewId(Long reviewId) 
    {
        this.reviewId = reviewId;
    }

    public Long getReviewId() 
    {
        return reviewId;
    }

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setReviewText(String reviewText) 
    {
        this.reviewText = reviewText;
    }

    public String getReviewText() 
    {
        return reviewText;
    }

    public void setRating(Long rating) 
    {
        this.rating = rating;
    }

    public Long getRating() 
    {
        return rating;
    }

    public void setReviewDate(Date reviewDate) 
    {
        this.reviewDate = reviewDate;
    }

    public Date getReviewDate() 
    {
        return reviewDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("reviewId", getReviewId())
            .append("productId", getProductId())
            .append("userId", getUserId())
            .append("reviewText", getReviewText())
            .append("rating", getRating())
            .append("reviewDate", getReviewDate())
            .toString();
    }
}
